package main

import (
	db "goblog/database"
	"goblog/routers"
)

func main() {
	//user := models.User{
	//	Id: UUID(),
	//	Name: "lalala3",
	//	Age: 123,
	//	Sex: 1,
	//	Email: "waising0204@gmail.com",
	//	CreateTime: time.Now(),
	//}

	//fmt.Println(user)
	//models.AddUser(&user)
	//user := models.GetUsersById("3b72d58037da4a8d9d6c92b041b89b70")
	//user := models.GetUsers()
	//
	//fmt.Println(user)

//	var users []models.User
//	db.Orm.Limit(1,0).Find(&users)
//
//	//err := engine.Sql("SELECT * FROM log LIMIT ? OFFSET ?", 5, 2).Find(&log)
//fmt.Print("xxxxx")
//	if len(users)==0
//	fmt.Printf(users[0].Name)

	defer db.Orm.Close()

	routers.InitRouter().Run(":8088")
}



